#ifndef MAP_DATA_MANAGER_H
#define MAP_DATA_MANAGER_H

#include <QSettings>

#ifndef GRID_H
#include "Grid.h"
#endif

#ifndef HEAD_Q_H
#include "../head_Q.h"
#endif

// 地图数据管理
class Map_Data_Manager{
    /// 地图的样子
    /// 地图上的设施
    const static QString dbmap,dbfacility;
    int height, width;
protected:
    QStringList map_rows;
    QStringList f_map_rows; // facility map rows
public:
    Map_Data_Manager(int height = grid::HEIGHT, int width = grid::WIDTH);
    void doSave();
    void loadSave();
    void clear(); // 清空局部存档 地图
};

#endif // MAP_DATA_MANAGER_H
